Allow using 'vc-prepare-patch' in non-VC buffers
authorPhilip Kaludercic <philipk@posteo.net>
Mon, 12 Feb 2024 16:37:16 +0000 (17:37 +0100)
committerPhilip Kaludercic <philipk@posteo.net>
Mon, 12 Feb 2024 16:37:52 +0000 (17:37 +0100)
* lisp/vc/vc.el (vc-prepare-patch): Remove
'vc-ensure-vc-buffer', as it is not necessary to verify this for
the command to work.

lisp/vc/vc.el

index f612daaa569c4c2a5ff1a06ac53e2b3c84573d4e..ca6efeabac25d02447f826fd995220c23f621520 100644 (file)
@@ -3639,7 +3639,6 @@ marked revisions, use those."
                 (read-string "Subject: " "[PATCH] " nil nil t))
            revs)))
   (save-current-buffer
-    (vc-ensure-vc-buffer)
     (let ((patches (mapcar (lambda (rev)
                              (vc-call-backend
                               (vc-responsible-backend default-directory)